const readline = require('readline-sync');
//console.log(gongbeishu(5,7));
var input = readline.question("请输入两个数字，用空格隔开");
console.log(input);
var a = input.split(' ')[0];
var b = input.split(' ')[1];
console.log(gongbeishu(a,b));
function gongbeishu(a,b){
//先获得两数倍数
    var c=a*b;
    for(var i = 1; i <= c;i++){
        if(i % a === 0 && i % b===0){
              return i;
}
}
}
